package com.gaoboy.springbootgoods.mapper;

import com.gaoboy.springbootgoods.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    List<User> queryAll();

    User findByNameAndPassword(@Param("username") String username,@Param("password")String password);

    User findByName(@Param("username") String username);

    int insert(User user);

}
